package com.relanet.db;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DBConnection {
	private static DBConnection instance = null;

	public static synchronized DBConnection getInstance() {
		if (instance == null) {
			instance = new DBConnection();
		}
		return instance;
	}

	/**
	 * To getConnection
	 * 
	 * @return Connection
	 */
	public Connection getConnection() {
		Connection connection = null;
		try {
			connection = DriverManager.getConnection("proxool.qeeapp_jdbc_pool");
		} catch (SQLException e) {
			System.err.println("Problem getting connection" + e);
		}
		return connection;
	}
}
